import NamedString from "../../core/NamedString";
import {Consts} from "@/core/Consts";
import dayjs, {Dayjs} from 'dayjs'

export default class Task extends NamedString {
    public jobId?: string;
    public jobName?: string;
    public execTime?: string;
    public execValue?: number;

    public get execTime_(): Dayjs {
        return dayjs(this.execTime);
    }

    public set execTime_(value: Dayjs) {
        this.execTime = value.format(Consts.dateFormat);
    }
}
